home *** CD-ROM | disk | FTP | other *** search
- on sportyMaze
- global MAZEH, MAZEV, MAZEBINARY
- repeat while the mouseMember = member "maze mask"
- if (the mouseH > (the locH of sprite 60 + 7)) and (char (MAZEH * 2) - 1 of line MAZEV of MAZEBINARY = 0) then
- moveMaze("rtMazeCur", "horizontal", 1)
- next repeat
- end if
- if (the mouseH < (the locH of sprite 60 - 7)) and (char (MAZEH * 2) - 3 of line MAZEV of MAZEBINARY = 0) then
- moveMaze("leftMazeCur", "horizontal", -1)
- next repeat
- end if
- if (the mouseV > (the locV of sprite 60 + 7)) and (char MAZEH * 2 of line MAZEV of MAZEBINARY = 0) then
- moveMaze("downMazeCur", "vertical", 1)
- next repeat
- end if
- if (the mouseV < (the locV of sprite 60 - 7)) and (char MAZEH * 2 of line MAZEV - 1 of MAZEBINARY = 0) then
- moveMaze("upMazeCur", "vertical", -1)
- next repeat
- end if
- puppetSound(0)
- end repeat
- puppetSound(0)
- end
-
- on moveMaze spriteCursor, horOrVert, offset
- global MAZEH, MAZEV, MAZEREVEALS, MAZEBINARY, PRINTLIST
- puppetSound("maze ball")
- set the cursor of sprite 2 to 2
- set speed to 2
- set firstSprite to 3
- set horizontal to horOrVert = "horizontal"
- if horizontal then
- set MAZEH to MAZEH + offset
- else
- set MAZEV to MAZEV + offset
- end if
- repeat with x = 1 to 14 / speed
- if offset = -1 then
- set turnX to (14 / speed) - x + 1
- else
- set turnX to x
- end if
- if horizontal then
- set the locH of sprite 60 to the locH of sprite 60 + (speed * offset)
- set the member of sprite 60 to "top" && turnX
- else
- set the locV of sprite 60 to the locV of sprite 60 + (speed * offset)
- set the member of sprite 60 to "left" && turnX
- end if
- updateStage()
- end repeat
- set testLoc to string(MAZEH & "/" & MAZEV)
- repeat with x = 0 to 5
- if (testLoc = item x + 1 of "8/3,2/17,2/4,15/6,10/16,2/2") and (MAZEREVEALS = x) then
- set MAZEREVEALS to x + 1
- puppetSound("twink")
- set the visible of sprite (x + firstSprite) to 1
- updateStage()
- if x = 5 then
- set the cursor of sprite 2 to 0
- put "sporty spice print" & RETURN after PRINTLIST
- congratulations()
- returnToMainGame(the frameLabel)
- end if
- end if
- end repeat
- updateStage()
- end
-